<?php

$path = __DIR__;

//更新代码
$cmd = "cd {$path} && git fetch && git reset --hard origin/master";
system($cmd);


$a2 = $argv[2] ?? '';
$a3 = $argv[3] ?? '';
$a4 = $argv[4] ?? '';
//执行对应文件
$cmd = "php {$path}/{$argv[1]}.php $a2 $a3 $a4";
system($cmd);